package com.molichuxing.gateway.bff.stock.entity.response;

import java.time.LocalDateTime;

import com.molichuxing.framework.dto.ResponseRootDto;
import com.molichuxing.services.property.StockRecordTypeEnum;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 
 * @author liyg
 * 库存物流dto
 * 2019-08-21
 *
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class StockRecordVo extends ResponseRootDto {
    
	@ApiModelProperty(value = "主键id")
    private Integer id;

	@ApiModelProperty(value = "车架号")
    private String vin;
    
	@ApiModelProperty(value = "车牌号")
    private String licencePlate;

	@ApiModelProperty(value = "车型名称")
    private String vehicleName;
	
	@ApiModelProperty(value = "车型图")
	private String vehicleImg;
	
	@ApiModelProperty(value = "产权方id")
    private Integer ownershipId;
	
	@ApiModelProperty(value = "产权方名称")
	private String ownershipName;

	@ApiModelProperty(value = "发车库名称 ")
    private String outStockName;

	@ApiModelProperty(value = "收车库名称 ")
    private String inStockName;

	@ApiModelProperty(value = "出入库类型（1：采购入库，2：调拨入库，3：调拨出库，4：调拨入店，5：拒收入库，6：收车入库）")
    private Integer type;
    
	@ApiModelProperty(value = "出入库类型str")
    private String typeStr;

	@ApiModelProperty(value = "操作时间（出入库时间）")
    private LocalDateTime operationTime;

	@ApiModelProperty(value = "检验单文件url")
    private String pdiUrl;

    /**
     * stock_stock_record
     */
    private static final long serialVersionUID = 1L;
    
    public void setType(Integer type) {
    	this.type=type;
    	this.typeStr= type==null ? null : StockRecordTypeEnum.getName(type);
    }
    
    

   
}